ExamPlay Light Logo
Log Masuk

Computer Science for IGCSE & O level - Algorithm Design And Problem Solving (Section 7 - No. 28)

If an algorithm needs to execute different actions depending on the value of a variable, which control structure is the most suitable to use?
FOR...NEXT loop
WHILE...DO...ENDWHILE loop
IF...THEN...ELSE statement
REPEAT...UNTIL loop

Penjelasan

The IF...THEN...ELSE statement makes different actions based on the variable's value.

Komen (0)

Log Masuk Untuk Mengulas
Iklan
BrainBehindX Inc Logo
©2026; Dikuasakan Oleh BrainBehindX Inc